def account_create(init_amout=0):

    def ATM(num,deposit=True):
        nonlocal init_amout
        if deposit:
            init_amout += num
            print(f"存款+{num},余额{init_amout}")
        else:
            init_amout -= num
            print(f"取款-{num},余额{init_amout}")
    return ATM

atm=account_create()
atm(100)
atm(100)
atm(100)
